﻿using System.Collections.Generic;
using System.Linq;
using NHibernate;
using NHibernate.Linq;
using Noodles.Core.Model;
using System;
using System.Xml.Serialization;
using System.IO;
using System.Web.Hosting;
using Noodles.Core.Enums;

namespace Noodles.Core.Repositories
{    

    class GetPagesRepository:IGetPages
    {
        private readonly ISession session2;

        public GetPagesRepository(ISession _session)
        {
            session2 = _session;
        }
        public IEnumerable<Pages> GetPages()
        {
            IEnumerable<Pages> pagelist = session2.QueryOver<Pages>().List();
            return pagelist;
        }

    }
}
